#pragma once

#include "Dao.h"

class CDBLogic{
public:
	CDBLogic(void);
	~CDBLogic(void);
	
	void SetDao(CDao *pDao);
	bool ShowDataBases(vector<CDBEntity> *pDBList);
	bool CreateDataBase(CString strDBName);
	bool DropDataBase(CString strDBName);
	int GetLastError();

private:
	CDao *m_pDao;
	int m_nLastError;
};

